package com.one.common.presenter;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by yy on 2016/11/16.
 * <p>
 * Presenter 基础接口
 */

public interface IPresenter {
    public void onStart();

    public void onResume();

    public void onPause();

    public void onStop();

    public void onDestroy();

    public void onCreate();

    /**
     * fragment 特有生命周期
     */

    public void onActivityCreated(@Nullable Bundle savedInstanceState);

    public void onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle
            savedInstanceState);

    public void onViewCreated(View view, @Nullable Bundle savedInstanceState);
}
